

const fs = require('fs').promises;

async function readFileContent(filePath) {
    try {
        const content = await fs.readFile(filePath, 'utf-8');
        return content;
    } catch (err) {
        console.error(`Error reading file: ${err.message}`);
    }
}

const qusetionRes = async() => {
    try {
        const content = await readFileContent('./dataIn/Question.txt');
        // console.log("content:", content);
        return content;
    } catch (err) {
        console.error(`Error in qusetionRes: ${err.message}`);
    }
};

module.exports = {
    qusetionRes
};